package com.hns.its.domain;

import com.hns.its.common.annotation.LogisticsId;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * ItsOrgEmployee entity. @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "its_org_employee_test")
public class ItsOrgEmployeeTest implements java.io.Serializable {

    // Fields

    /**
     *
     */
    private static final long serialVersionUID = 2311095978710536107L;
    private String id;
    @LogisticsId
    private String depId;
    private String name;
    private String code;
    private Integer status;
    private Date createTime;
    private Character testchar;


//	private ItsOrgDepartment department;

    // Constructors

    /**
     * default constructor
     */
    public ItsOrgEmployeeTest() {
    }

    /**
     * full constructor
     */
    public ItsOrgEmployeeTest(String name, String code, Integer status) {
        this.name = name;
        this.code = code;
        this.status = status;
    }

    public ItsOrgEmployeeTest(String id, String name) {
        this.id = id;
        this.name = name;
    }

    // Property accessors
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    @Column(name = "id", unique = true, nullable = false)
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "dep_id")
    public String getDepId() {
        return depId;
    }

    public void setDepId(String depId) {
        this.depId = depId;
    }

    @NotNull
    @Column(name = "name")
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "code")
    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "testchar")
    public Character getTestchar() {
        return testchar;
    }


    public void setTestchar(Character testchar) {
        this.testchar = testchar;
    }


//	@ManyToOne(fetch = FetchType.LAZY)
//	@JoinColumn(name = "dep_id")
//	public ItsOrgDepartment getDepartment() {
//		return department;
//	}
//
//	public void setDepartment(ItsOrgDepartment department) {
//		this.department = department;
//	}


}